import request_doc from "@/axios/request_doc.ts";

enum API1 {
    A = '/inventory/download_angle_steel_table_true_store',
    B = '/inventory/download_angle_steel_table_false_store',
    C = '/inventory/download_angle_steel_table_weight',
    D = '/inventory/download_history_strip_steel_table',
    E = '/inventory/download_scrap_steel',
}

// 角钢销售用库存表（正品）
export const req_download_angle_steel_table_true_store = (data: {export_date: string}): Promise<any> => {
    return request_doc.post<any, any>(API1.A, data)
}

// 角钢次品库存表（次品）
export const req_download_angle_steel_table_false_store = (data: {export_date: string}): Promise<any> => {
    return request_doc.post<any, any>(API1.B, data)
}

// 角钢企管表（重量）
export const req_download_angle_steel_table_weight = (data: {export_date: string}): Promise<any> => {
    return request_doc.post<any, any>(API1.C, data)
}

// 带钢库存表（正品，次品，重量）
export const req_download_history_strip_steel_table = (data: {export_date: string}): Promise<any> => {
    return request_doc.post<any, any>(API1.D, data)
}

// 带钢库存表（正品，次品，重量）
export const req_download_scrap_steel_table = (data: {export_date: [string, string]}): Promise<any> => {
    return request_doc.post<any, any>(API1.E, data)
}



